home *** CD-ROM | disk | FTP | other *** search
-
-
-
- div User Commands div
-
-
-
- _________________________________________________________________
-
- NNAAMMEE
- div, ldiv - Return quotient and remainder from division
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ssttddlliibb..hh>>
-
- ddiivv__tt
- ddiivv((_n_u_m_e_r, _d_e_n_o_m))
-
- llddiivv__tt
- llddiivv((_n_u_m_e_r, _d_e_n_o_m))
-
- AARRGGUUMMEENNTTSS
- int _n_u_m_e_r (in) Numerator for division.
-
- int _d_e_n_o_m (in) Denominator for division.
-
- _________________________________________________________________
-
-
- DDEESSCCRRIIPPTTIIOONN
- The ddiivv and llddiivv procedures divide _n_u_m_e_r by _d_e_n_o_m and return
- both the quotient and remainder, in the qquuoott and rreemm fields
- of the result structure. If the division is inexact, the
- sign of the resulting quotient is that of the algebraic quo-
- tient, and the magnitude of the resulting quotient is the
- largest integer less than the magnitude of the algebraic
- quotient.
-
- DDiivv takes iinntt arguments and produces iinntt results, while llddiivv
- works with lloonngg iinntt arguments and results.
-
-
- KKEEYYWWOORRDDSS
- divide, quotient, remainder
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v.1.0 Printed: August 12, 1989 1
-
-
-
-